-- GENERATED SPELL FOR [Captain Jacobs] --


function spell0_26252(pUnit, Event) --@Blade Flurry,Self--
pUnit:FullCastSpellOnTarget(33735,pUnit)
pUnit:RegisterEvent('Sorts_26252', 15321, 1)
end

function spell1_26252(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26252', 5317, 1)
end

function Sorts_26252(pUnit, Event)
local choix_sorts_26252 = math.random(0, 1)
if choix_sorts_26252 == 0 then
pUnit:RegisterEvent('spell0_26252', 1, 1)
end
if choix_sorts_26252 == 1 then
pUnit:RegisterEvent('spell1_26252', 1, 1)
end
end

function mob26252_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26252', math.random(1500, 3000), 1)
end

function mob26252_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26252_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26252_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26252, 1, 'mob26252_Action')
RegisterUnitEvent(26252, 2, 'mob26252_Leave')
RegisterUnitEvent(26252, 3, 'mob26252_Kill')
RegisterUnitEvent(26252, 4, 'mob26252_Die')
